<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="查询条件" namespace="repairSettingManage"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入类型名称','repairSettingManage')"
                                       v-model="repairSettingManageInfo.conditions.repairTypeName"
                                       class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="repairSettingManageInfo.conditions.repairWay">
                                <option selected value="">{{vc.i18n('请选择派单方式','repairSettingManage')}}</option>
                                <option v-for="(item,index) in repairSettingManageInfo.repairWays" :key="index"
                                        :value="item.statusCd">{{item.name}}
                                </option>
                            </select>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入派单类型','repairSettingManage')"
                                       v-model="repairSettingManageInfo.conditions.repairType" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-sm"
                                    v-on:click="_queryRepairSettingMethod()">
                                <i class="fa fa-search"></i>
                                <span><vc:i18n name="查询" namespace="repairSettingManage"></vc:i18n></span>
                            </button>
                            <button type="button" class="btn btn-info btn-sm"
                                    v-on:click="_queryResetRepairSettingMethod()" style="margin-left: 20px;">
                                <i class="fa fa-repeat"></i>
                                <span><vc:i18n name="重置" namespace="repairSettingManage"></vc:i18n></span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="报修设置" namespace="repairSettingManage"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-white btn-sm"
                                v-on:click="vc.showMarkdown('/pages/property/repairSettingManage')">
                            <span><vc:i18n name="文档" namespace="repairSettingManage"></vc:i18n></span>
                        </button>
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddRepairSettingModal()">
                            <i class="fa fa-plus"></i>
                            <span><vc:i18n name="添加" namespace="repairSettingManage"></vc:i18n></span>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                        <tr>
                            <th class="text-center">
                                <span><vc:i18n name="类型名称" namespace="repairSettingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="报修设置类型" namespace="repairSettingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="派单方式" namespace="repairSettingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="派单类型" namespace="repairSettingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="公共区域" namespace="repairSettingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="业主端是否展示" namespace="repairSettingManage"></vc:i18n></span>
                            </th>
                            <!-- <th class="text-center">
                            <span><vc:i18n name="收费范围" namespace="repairSettingManage"></vc:i18n></span>
                            </th> -->
                            <th class="text-center">
                                <span><vc:i18n name="是否回访" namespace="repairSettingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="创建时间" namespace="repairSettingManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="操作" namespace="repairSettingManage"></vc:i18n></span>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="repairSetting in repairSettingManageInfo.repairSettings">
                            <td class="text-center">{{repairSetting.repairTypeName}}</td>
                            <td class="text-center">{{repairSetting.repairSettingTypeName}}</td>
                            <td class="text-center">{{repairSetting.repairWayName}}</td>
                            <td class="text-center">{{repairSetting.repairType}}</td>
                            <td class="text-center">{{repairSetting.publicArea == 'T'?'是':'否'}}</td>
                            <td class="text-center">{{repairSetting.isShow == 'Y'?'是':'否'}}</td>
                            <!-- <td class="text-center">{{repairSetting.payFeeFlag == 'T'?repairSetting.priceScope:'不收费'}}</td> -->
                            <td class="text-center">{{repairSetting.returnVisitFlagName}}</td>
                            <td class="text-center">{{repairSetting.createTime}}</td>
                            <td class="text-center">
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_openEditRepairSettingModel(repairSetting)">
                                        <span><vc:i18n name="修改" namespace="repairSettingManage"></vc:i18n></span>
                                    </button>
                                </div>
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_viewRepairTypeUser(repairSetting)">
                                        <span><vc:i18n name="绑定维修师傅" namespace="repairSettingManage"></vc:i18n></span>
                                    </button>
                                </div>
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_openDeleteRepairSettingModel(repairSetting)">
                                        <span><vc:i18n name="删除" namespace="repairSettingManage"></vc:i18n></span>
                                    </button>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="8">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <div class="row margin-top-xs">
                        <div class="col-sm-9">
                            <div> 派单方式：</div>
                            <div> 1、抢单 是员工（报修类型下的师傅）自主抢单 维修处理，比较实用于物业每单给维修是否提成的场景</div>
                            <div> 2、指派 专门由客服派单员工（报修类型下的师傅）维修处理，一般物业的选择</div>
                            <div> 3、轮训 由系统定时派单员工（报修类型下的师傅）维修处理</div>
                            <div>公共区域：</div>
                            <div> 小区、楼栋、单元 为公共区域 房屋为非公共区域</div>
                            <div> 注意：一般业主房屋报修 我们必须要添加一个非公共区域的类型才能正常报修</div>
                        </div>
                        <div class="col-sm-3 float-right">
                            <vc:create path="frame/pagination"></vc:create>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="property/addRepairSetting" callBackListener="" callBackFunction=""></vc:create>
    <vc:create path="property/editRepairSetting"></vc:create>
    <vc:create path="property/deleteRepairSetting"></vc:create>
</div>